package com.cxh.controller.music;

import java.util.HashMap;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.cxh.base.BaseController;
import com.cxh.util.HttpClientUtil;
import com.cxh.util.HttpUtil;
import com.google.gson.Gson;

@Controller
@RequestMapping("/controller/music")
public class MusicController extends BaseController{
	
	/**
	 * @类功能说明：获取音乐信息
	 * @作者：Chenxh
	 * @创建时间：2019年1月2日下午3:19:19
	 */
	@RequestMapping("/musicList")
	@ResponseBody
	public String musicList(HttpServletRequest request, HttpServletResponse response){
		HashMap<String, String> paramMap = new HashMap<String,String>();
		/*paramMap.put(key, value);
		paramMap.put(key, value);*/
		//查询调用音乐接口
		String httpPost = HttpClientUtil.httpPost("", paramMap);
		Gson gson = new Gson();
		String json = gson.toJson(httpPost);
		return json;
	}
}
